<template>
	<view>
		<view class="listclass" v-for="(item,i) in newslist">
			<u-row gutter="16">
			<u-col span="1" @click="gonewslist(item.safetyPublicitySoft,item.safetyPublicityType)">
				<image src="../../static/xcfl.png" style="width: 50rpx;height: 50rpx;margin-top: 10rpx;margin-left: 30rpx;">
			</u-col>
			<u-col span="10" @click="gonewslist(item.safetyPublicitySoft,item.safetyPublicityType)">
				<p style="font-size: 30rpx;font-weight: 700;margin-top: 10rpx;margin-left: 30rpx;">{{ item.safetyPublicityType }}</p>
			</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				/* 数据 */
				newslist: [
				],
			}
		},
		onLoad: function(option) {
			
			this.$u.api.selectpublicitytype({
			}).then(res => {
				this.newslist=res.rows;
				console.log(this.newslist);
			})
			
		},
		computed: {},
		onShow() {},
		created() {
	
	
		},
		methods: {
			
			gonewslist(num,name) {
				
				uni.navigateTo({
					url:'/pages/propaganda/subcategory?listNumber=' + num + '&listName=' + name,
				})
			},
		}
	}
</script>

<style>
	
	.listclass{
		border: 1px solid #dde3ed;
		height: 80rpx;
	}
</style>
